import Layout from "@/layout";

const menuRouter = {
  path: "/menu/list",
  component: Layout,
  redirect: "noRedirect",
  name: "menu",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "菜谱管理",
    abbre: "菜谱",
    icon: "left_menu_menu",
    navigation: "/menu",
    id: "407"
  },
  children: [
    {
      path: "/menu/list",
      component: () => import("@/views/menu/list/Index.vue"),
      name: "menu_list",
      hidden: false,
      meta: {
        title: "菜谱列表",
        noCache: true,
        navigation: "/menu/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/menu/goods",
      component: () => import("@/views/menu/goods/Goods.vue"),
      name: "menu_list_goods",
      hidden: false,
      meta: {
        title: "套餐商品",
        noCache: true,
        navigation: "/menu/goods",
        icon: "menu_big_data"
      }
    },
    {
      path: "/menu/list/add",
      component: () => import("@/views/menu/list/AddMenu.vue"),
      name: "menu_add",
      hidden: true,
      meta: {
        title: "新增菜谱",
        noCache: true,
        navigation: "/menu/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/menu/goods/add",
      component: () => import("@/views/menu/goods/AddGoods.vue"),
      name: "goods_add",
      hidden: true,
      meta: {
        title: "新增套餐",
        noCache: true,
        navigation: "/menu/goods",
        icon: "menu_big_data"
      }
    },
    {
      path: "/menu/order",
      component: () => import("@/views/menu/order/Index.vue"),
      name: "menu_order",
      hidden: false,
      meta: {
        title: "菜谱订单",
        noCache: true,
        navigation: "/menu/order",
        icon: "menu_big_data"
      }
    },
    {
      path: "/menu/order/detail",
      component: () => import("@/views/menu/order/orderDetail.vue"),
      name: "order_detail",
      hidden: true,
      meta: {
        title: "订单详情",
        noCache: true,
        navigation: "/menu/order",
        icon: "menu_big_data"
      }
    },
    {
      path: "/menu/order/edit",
      component: () => import("@/views/menu/order/orderEdit.vue"),
      name: "order_edit",
      hidden: true,
      meta: {
        title: "编辑订单",
        noCache: true,
        navigation: "/menu/order",
        icon: "menu_big_data"
      }
    }
  ]
};

export default menuRouter;
